<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Determines if an array value represents an XMLRPC fault</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.xmlrpc-is-fault" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xmlrpc_is_fault</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">xmlrpc_is_fault</span> &mdash; <span class="dc-title">Determines if an array value represents an XMLRPC fault</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.xmlrpc-is-fault-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>xmlrpc_is_fault</strong></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$arg</code></span>
   ) : <span class="type">bool</span></div>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象，包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xmlrpc-is-fault-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">arg</code></dt>

     <dd>

      <p class="para">
       Array returned by <span class="function"><a href="xmlrpc_decode.html" class="function">xmlrpc_decode()</a></span>.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.xmlrpc-is-fault-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> if the argument means fault, <strong><code>FALSE</code></strong> otherwise. Fault
   description is available in <em>$arg[&quot;faultString&quot;]</em>, fault
   code is in <em>$arg[&quot;faultCode&quot;]</em>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.xmlrpc-is-fault-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   See example by <span class="function"><a href="xmlrpc_encode_request.html" class="function">xmlrpc_encode_request()</a></span>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.xmlrpc-is-fault-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="xmlrpc_decode.html" class="function" rel="rdfs-seeAlso">xmlrpc_decode()</a> - 将 XML 译码为 PHP 本身的类型</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>